<h3>Общие данные</h3>
<div class="profile_form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>
	<div class="profile_left">
		<div class="row">
			<?php echo $form->labelEx($model,'email'); ?>
			<?php echo $model->email ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'first_name'); ?>
			<?php echo $form->textField($model,'first_name',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'first_name'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'last_name'); ?>
			<?php echo $form->textField($model,'last_name',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'last_name'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'password'); ?>
			<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'_password2'); ?>
			<?php echo $form->passwordField($model,'_password2',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'_password2'); ?>
		</div>
	</div>
	
	<div class="profile_right">
		<div class="row">
			<?php echo $form->labelEx($model,'phone'); ?>
			<?php echo $form->textField($model,'phone',array('size'=>11,'maxlength'=>11)); ?>
			<?php echo $form->error($model,'phone'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'city'); ?>
			<?php echo $form->textField($model,'city',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'city'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'education'); ?>
			<?php echo $form->dropDownList(
	        		$model, 
	        		'education', 
	        		User::getEductionData(),
	        		array('prompt'=>' - Выбирете - ')); ?>
			<?php echo $form->error($model,'education'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'sex'); ?>
			<?php echo $form->dropDownList(
	        		$model, 
	        		'sex', 
	        		User::getSexData(),
	        		array('prompt'=>' - Выбирете - ')); ?>
			<?php echo $form->error($model,'sex'); ?>
		</div>
		<div class="row">
			<?php echo $form->labelEx($model,'birthday'); ?>
			<?php echo $form->dropDownList(
	        		$model, 
	        		'birthday', 
	        		User::getBirthdayData(),
	        		array('prompt'=>' - Выбирете - ')); ?>
			<?php echo $form->error($model,'birthday'); ?>
		</div>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Сохранить'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php echo $this->renderPartial('statistic', array('model'=>$model));?>

<?php //$this->widget('SendEmails') ?>
